﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.Json.Serialization;

namespace Model
{
    //选课表
    public class CourseSelect
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        //选课id
        public int CourseSelectId { get; set; }
        //教师id
        public int TeacherId { get; set; }
        //班级id
        public int ClassesId { get; set; }
        //课程id
        public int CourseId { get; set; }
        //软删除
        public Boolean IsDelete { get; set; }
        //创建时间
        public DateTime CreateTime { get; set; } = DateTime.Now;
        //更新时间
        public DateTime UpdateTime { get; set; } = DateTime.Now;

        //导航属性
        [JsonIgnore]
        //指向Classes
        public Classes Classes { get; set; }
        //指向Course
        public Course Course { get; set; }
        //指向Teacher
        public Teacher Teacher { get; set; }
    }
}
